package com.lmk;

import java.util.Scanner;

public class Animals {
   private String name;   // 昵称
  private   int health=100; // 健康值
  private   int love=0;     // 亲密度
    private String strain; // 品种
    Scanner sc=new Scanner(System.in);
    public Animals() {

    }

    @Override
    public String toString() {
        String str="宠物的自白"+"\n"+"我的名字叫"+name+"健康值是"+health+"和主人亲密度是"+love+"我是一只:"+strain;
        return str;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getHealth() {
        return health;
    }

    public void setHealth(int health) {
        this.health = health;
    }

    public int getLove() {
        return love;
    }

    public void setLove(int love) {
        this.love = love;
    }

    public String getStrain() {
        return strain;
    }

    public void setStrain(String strain) {
        this.strain = strain;
    }
}
